package cn.lcsjsxy.yxc.reflect.Person;

public class Person {
    private String name;
    public int age;

    public Person() {
        System.out.println("hello!");
    }

    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    private Person(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("你好，我是人");
    }

    private String showNation(String nation){
        System.out.println("我的国籍是："+nation);
        return nation;
    }

    @Override
    public String toString() {
        return "com.yang_xc.miscellaneous.Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
